function Sum(...args) {
    return args.reduce((c, p) => c + p, 0);
}

console.log(Sum(1,2,3))